package com.worthtech.billportal.dao.hibernate;

import java.util.List;

import com.worthtech.billportal.dao.BillPayOracleDAO;
import com.worthtech.billportal.util.AbstractManager;
import com.worthtech.billportal.util.PaginationSupport;
import org.hibernate.criterion.DetachedCriteria;

public class BillPayOracleHibernateDAO extends AbstractManager implements BillPayOracleDAO{

	public PaginationSupport getBillPayList(DetachedCriteria detachedCriteria,int startIndex) {
		return this.findPageByCriteria(detachedCriteria,startIndex);
	}
	
	public List getBillPayList(final String query) {
		return this.find(query);
	}
	
	public List getBillPayList(DetachedCriteria detachedCriteria){
		return this.findAllByCriteria(detachedCriteria);
	}
}
